import request from '../utils/http'


export const login = params => request({url:'/user/login',
                                        method:'post',
                                        data:{...params}
                                    })

export const register= params => request({url:'/user/register',
                                        method:'post',
                                        data:{...params}
                                    })